﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLFacade.entities;
using BLFacade.enums;

namespace BL
{
    public partial class CustomerContact : ICustomerContacts
    {
        public string FirstName
        {
            get
            {
                return Person.FirstName;
            }
            set
            {
                Person.FirstName = value;
            }
        }
        public string LastName
        {
            get
            {
                return Person.LastName;
            }
            set
            {
                Person.LastName = value;
            }
        }
        public string MiddleName
        {
            get
            {
                return Person.MiddleName;
            }
            set
            {
                Person.MiddleName = value;
            }
        }
        public string Email
        {
            get
            {
                return Person.Email;
            }
            set
            {
                Person.Email = value;
            }
        }
        public string PhoneNumber
        {
            get
            {
                return Person.PhoneNumber;
            }
            set
            {
                Person.PhoneNumber = value;
            }
        }

        public ICredentials Credentials
        {
            get
            {
                return new Credentials { Username = this.Person.Username, Password = this.Person.Password };
            }
            set
            {
                this.Person.Username = value.Username;
                this.Person.Password = value.Password;
            }
        }


        ICustomer ICustomerContacts.Customer
        {
            get
            {
                return (ICustomer)(this.Customer);
            }
            set
            {
                this.Customer = (Customer)value;
            }
        }

        public string FullName
        {
            get
            {
                return Person.FullName;
            }
        }
    }

}
